#include "workCmd.h"

int sysadd(client_t *pclient,char *cmd){
    time_t now = time(NULL);
    struct tm *pTm = localtime(&now);
    syslog(LOG_INFO,"%4d%2d%2d %2d:%2d:%2d user:%s %s\n",
           pTm->tm_year + 1900,
           pTm->tm_mon + 1,
           pTm->tm_mday,
           pTm->tm_hour,
           pTm->tm_min,
           pTm->tm_sec,
           pclient->userName,
           cmd);
    return 1;
}
